.teacher_affairs {
  padding-bottom: 120rpx;
}

.card {
  padding: 45rpx 30rpx;
  margin: 0 37rpx;
  background-color: #EC5938;
  border-radius: 20rpx;
  margin-top: 30rpx;

  .title {
    text-align: center;
    font-size: 30rpx;
    color: #000;
  }

  .card_line {
    margin-top: 40rpx;
    display: flex;
    justify-content: space-between;

    .card_item {
      text-align: center;
      font-size: 26rpx;
    }

    .amount {
      font-weight: 900;
      color: #fff;
      font-size: 45rpx;
      margin-top: 25rpx;
    }
  }

  .second_title {
    text-align: center;
    font-size: 24rpx;
    color: #FFFFFF;
    display: flex;
    flex-direction: row;
    padding: 0 10rpx;
    margin-top: 40rpx;

    &:before,
    &:after {
      content: '';
      flex: 1 1;
      border-bottom: 1rpx solid #D45032;
      position: relative;
      bottom: 12rpx;
    }

    &:before {
      margin-right: 20rpx;
    }

    &:after {
      margin-left: 20rpx;
    }
  }

  .card_line_small {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 24rpx;
    text-align: center;

    .card_item {
      margin-top: 34rpx;

      .amount {
        margin-top: 20rpx;
      }
    }
  }
}

.approval_box {
  margin: 0 34rpx;
  margin-top: 60rpx;

  .top_line {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .title {
      color: #000;
      font-size: 31rpx;
    }

    .more {
      color: #707070;
      font-size: 22rpx;
    }
  }

  .content_box {
    padding: 20rpx 50rpx;
    background-color: #fff;
    box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.3);
    margin-top: 20rpx;
    border-radius: 20rpx;
    font-size: 22rpx;
    color: #707070;

    .content_line {
      display: flex;
      justify-content: space-between;

      view {
        flex: 1;
        margin-bottom: 25rpx;
      }
    }

    .content_detail {
      padding-top: 25rpx;
      border-top: #AFAFAF solid 1rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }
  }

  .foot_line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20rpx;

    .foot_button {
      flex: 1;
      text-align: center;
      line-height: 60rpx;
      font-size: 30rpx;
      font-weight: 900;
    }

    .button_ok {
      background-color: #D8E9E3;
    }

    .button_cancel {}
  }
}

.bottom_box {
  margin: 0 35rpx;
  margin-top: 100rpx;

  .tab_list {
    display: flex;
    font-size: 25rpx;

    .tab_item {
      padding: 15rpx;
      border-radius: 0 20rpx 0 0;
      width: 100rpx;
      text-align: center;
      white-space: nowrap;
    }

    .current_tab_item {
      font-weight: 900;
      color: #EC5938;
    }

    :nth-child(1) {
      background-color: #fff;
      position: relative;
      z-index: 3;
    }

    :nth-child(2) {
      background-color: #D8E9E3;
      position: relative;
      z-index: 2;
      left: -10rpx;
    }

    :nth-child(3) {
      background-color: #FFEBD0;
      position: relative;
      z-index: 1;
      left: -20rpx;
    }

    :nth-child(4) {
      background-color: #D7E8D5;
      position: relative;
      z-index: 1;
      left: -20rpx;
    }

    :nth-child(5) {
      background-color: #FFF9EB;
      position: relative;
      z-index: 1;
      left: -20rpx;
    }
  }
}

.bottom_content_box {
  margin: 0 37rpx;
  box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.3);
  padding: 20rpx;
  border-radius: 10rpx;

  .bottom_list {
    .search_list {
      display: flex;
      border-bottom: 1rpx solid #B2B2B2;
      padding-bottom: 20rpx;
      overflow-x: scroll;

      &:not(:first-child) {
        margin-top: 20rpx;
      }

      .search_item {
        margin: 0 10rpx;
        font-size: 22rpx;
        color: #707070;
        white-space: nowrap;
      }

      .current_item {
        color: red;
      }
    }
  }

  .info_line {
    display: flex;
    font-size: 22rpx;
    color: #707070;
    margin-top: 30rpx;
    align-items: center;

    view {
      flex: 1;
    }
  }

  .first_card {
    margin-top: 50rpx;

    // 待审核
    .need_pay_card {
      background-color: #f7f7f7;
      border-radius: 20rpx;
      padding: 20rpx;

      &:not(:last-child) {
        margin-bottom: 20rpx;
      }

      .top_line {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding-bottom: 20rpx;
        border-bottom: solid 2rpx #9A9A9A;

        .name {
          font-size: 31rpx;
        }

        .nub {
          color: #707070;
          font-size: 24rpx;
        }
      }

      .info_content_list {
        padding-top: 30rpx;
        margin-top: 30rpx;
        border-top: solid 1rpx #707070;

        .info_content_item {
          font-size: 22.22rpx;
          color: #707070;
        }
      }

      .add_tracking {
        font-weight: 900;
        background-color: #016241;
        color: #fff;
        padding: 10rpx 0;
        width: 140rpx;
        text-align: center;
        font-size: 22rpx;
        border-radius: 30rpx;
      }
    }
  }

  .second_card {
    background-color: #f7f7f7;
    border-radius: 20rpx;
    padding: 20rpx;

    &:not(:last-child) {
      margin-bottom: 20rpx;
    }

    .status_list {
      display: flex;
      flex-wrap: wrap;
      padding-top: 25rpx;
      margin-top: 25rpx;
      border-top: 1rpx solid #707070;

      .status_item {
        font-size: 22rpx;
        color: #707070;
        padding: 10rpx 25rpx;
        background-color: #EFEFEF;
        border-radius: 30rpx;
        margin: 10rpx 5rpx;
      }
    }
  }

  .third_card_item {
    background-color: #f7f7f7;
    border-radius: 20rpx;
    padding: 20rpx;

    &:not(:last-child) {
      margin-bottom: 20rpx;
    }
  }

  .fourth_card {
    .date_picker {
      padding: 15rpx;
      margin-left: 10rpx;
      margin-bottom: 20rpx;
    }

    .calendar {
      max-width: 100%;

      .wcc {
        max-width: 100% !important;
      }
    }

    .course_item {
      display: flex;
      margin-bottom: 20rpx;

      &:nth-last-child(1) {
        margin-bottom: 0;
      }

      .left_box {
        padding-right: 50rpx;
        border-right: #9D9D9D solid 2rpx;
        height: 130rpx;
        width: 200rpx;

        .name {
          font-size: 30rpx;
          margin-top: 30rpx;
          color: #000;
          width: 200rpx;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .location {
          font-size: 24rpx;
          color: #707070;
          width: 200rpx;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .center {
        margin-left: 50rpx;
        color: #707070;
        font-size: 24rpx;
        width: 200rpx;
      }

      .right_box {
        margin-left: auto;

        .time {
          color: #EC5938;
          font-size: 24rpx;
          margin-bottom: 10rpx;
          text-align: center;
        }

        .button {
          background-color: #EC5938;
          color: #fff;
          padding: 20rpx 30rpx;
          border-radius: 60rpx;
          font-size: 27rpx;
          font-weight: 900;
          white-space: nowrap;
          width: 100rpx;
          text-align: center;
        }
      }
    }
  }

  .fifth_card {
    background-color: #FFF9EB;

    .search_item {
      display: flex;
      align-items: center;
      width: 100%;
    }

    .content_input {
      width: 100%;
      border: solid 1rpx #707070;
      border-radius: 50rpx;
      padding: 5rpx 20rpx;
      font-size: 22rpx;
    }

    .button {
      background-color: #4AA568;
      color: #fff;
      padding: 10rpx 20rpx;
      border-radius: 60rpx;
      font-size: 27rpx;
      font-weight: 900;
      white-space: nowrap;
      width: 175rpx;
      text-align: center;
    }

    .student_info {
      .top_box {
        background: #fff;
        padding: 50rpx 30rpx;
        margin: 10rpx 15rpx;
      }
    }

    .course_list {
      padding: 0 15rpx;

      .course_item {
        color: #707070;
        font-size: 24rpx;
        padding: 20rpx 0;
        border-bottom: 1rpx solid #AFACA6;

        .name {
          color: #000000;
          font-size: 31rpx;
        }

        .ads {
          margin-top: 20rpx;
        }
      }
    }
  }
}

.schedule_box {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1000;
  height: 40vh;
  width: 65vw;
  background-color: #fff;
  box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.3);
  border-radius: 20rpx;
  font-size: 30rpx;

  .title {
    background: #D8E9E3;
    padding: 20rpx;
    border-radius: 20rpx 20rpx 0 0;
    text-align: center;
    font-weight: 900;
  }

  .content {
    padding: 20rpx 30rpx;

    textarea {
      width: auto;
    }
  }

  radio {
    .wx-radio-input {
      width: 25rpx;
      height: 25rpx;
    }
  }

  .schedule_radios {
    display: flex;
    justify-content: space-between;
  }

  .schedule_date_picker {
    margin-top: 30rpx;
  }

  .foot_line {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    width: 100%;

    .foot_button {
      flex: 1;
      text-align: center;
      line-height: 60rpx;
      font-size: 30rpx;
      font-weight: 900;
    }

    .button_ok {
      background-color: #D8E9E3;
    }

    .button_cancel {
      border-top: 1rpx solid #D8E9E3;
    }
  }
}

.button_item {
  margin-top: 20rpx;
  display: flex;
  justify-content: space-between;
}